/*
 * Tab.h
 *
 *  Created on: 01/05/2012
 *      Author: lucho0
 */

#ifndef TAB_H_
#define TAB_H_

#include "../Widget.h"
#include "../Event.h"
#include <string>
#include "../../common/Constantes.h"
#include "../../common/utils/SurfaceUtils.h"


class Tab: public Widget {
public:
	//Constructors legal labels are: client, server
	Tab(std::string label,int posX, int posY, Widget* parent = NULL);
	virtual ~Tab();
	void select();
	void unselect();
	bool isSelected();
	void handleEvent(Event event);
	void resolve();

private:

	bool selected;

	bool pressed;
	bool mouseOver;
	bool clicked;
	SDL_Surface* unselectedSurface;
	SDL_Surface* selectedSurface;
	SDL_Surface* mouseOverSurface;
};

#endif /* TAB_H_ */
